import api.HelloObject;
import api.HelloService;
import serializer.Serializer;
import transport.RpcClientProxy;
import transport.netty.client.NettyClient;

public class NettyTestClient {
    public static void main(String[] args) {
        NettyClient nettyClient = new NettyClient(Serializer.PROTOBUF_SERIALIZER);
        RpcClientProxy clientProxy = new RpcClientProxy(nettyClient);

        HelloService service = clientProxy.getProxy(HelloService.class);
        String s = service.hello(new HelloObject(12, "This is a message"));
        System.out.println(s);
    }
}
